package com.api.user.service;
import com.api.user.model.Achievement;
import com.api.core.service.Service;
import com.api.core.response.Result;

/**
 * Created by wanghuiwen on 2021/08/10.
 */
public interface AchievementService extends Service<Achievement> {
   Result list(String search, String order, Integer page, Integer size);

   Result all(Integer page, Integer size, Long id);

   Result my(Integer page, Integer size, Long id);


   /**
    * 具备条件后获取某个徽章
    * @return
    */
   Result complete(Long achievementId,Long userId);

   /**
    * 添加完成数量
    * @param step 完成的数量
    */
   Result addStep(Long achievementId,Long userId,int step);

   /**
    * 过期清理
    */
   Result cleaning();

}
